package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaoruan
 * @since 2023-03-10
 */
@Data
@TableName("wnxt_admin")
@ApiModel(value = "Admin对象")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("admin表的id")
//      雪花
      @TableId(type = IdType.ASSIGN_ID)
        private String id;

      @ApiModelProperty("用户名")
      private String userName;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("用户头像")
      private String avatar;

      @ApiModelProperty("逻辑删除(0未删除，1已删除)")
      @TableLogic(value = "0",delval = "1")
      private Byte isDelete;

      @ApiModelProperty("管理员（1.表示管理员，2.表示普通用户）")
      private Byte isAdmin;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
